package com.day03;

public class SingletonMode {
   public static void main(String[] args){
       Person p1 = Person.getPerson();
       p1.setName("zhangsan");
       p1.setAge(12);


       Person p2 = Person.getPerson();
       p2.setName("lisi");
       p2.setAge(18);
       System.out.println(p1.getName()+","+p1.getAge());
       System.out.println(p2.getName()+","+p2.getAge());
   }
}
